package com.share.innerclass;

public class Outer2 {
	private int size;
	private int outerParm;

	public class Inner {
		private int counter = 10;
		private int innerParm;

		//Q1
		public void doStuff(int parm) {
			innerParm = parm;
			System.out.println("innerParm = " + innerParm);
			
			//Q2 call outerFun
			outerFun(innerParm);
		}		
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	//Q2
	public void outerFun(int count) {
		outerParm = count * 2;
		System.out.println("outerParm = " + outerParm);
	}
}
